package com.book.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学校信息
 * </p>
 *
 * @author auto
 * @since 2025-04-11 09:30:34
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("university")
@ApiModel(value = "University对象", description = "学校信息")
public class University {

    @ApiModelProperty("学校ID")
    @TableId(value = "univer_id", type = IdType.ASSIGN_UUID)
    private String univerId;

    @ApiModelProperty("学校名称")
    @TableField("univer_name")
    private String univerName;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("学校位置")
    @TableField("location")
    private String location;

    @ApiModelProperty("学校代码")
    @TableField("code")
    private String code;


}
